package com.cskaoyan.bean.wx.goods.vo;

import com.cskaoyan.bean.pojo.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Classname GoodsDetailVo
 * @Description
 * @Date 2021/8/15 23:40
 * @Author : xujun
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsDetailVo {

    List<GoodsAttribute> attribute;
    Brand brand;
    CommentVo comment;
    List<Groupon> groupon; // 不用管，不做
    Goods info;
    List<Issue> issue;
    List<GoodsProduct> productList;
    String shareImage = "";
    List<GoodsSpecificationVo> specificationList;
    Integer userHasCollect;


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class CommentVo {

        Long count;
        List<CommentInnerVo> data;


        @Data
        @NoArgsConstructor
        @AllArgsConstructor
        public static class CommentInnerVo {

            Date addTime;
            String avatar;
            String content;
            Integer id;
            String nickname;
            String[] picList;
        }
    }


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class GoodsSpecificationVo {

        String name;
        List<ValueInnerVo> valueList;

        @Data
        @NoArgsConstructor
        @AllArgsConstructor
        public static class ValueInnerVo {

            private Integer id;
            private Integer goodsId;
            private String specification;
            private String value;
            private String picUrl;
            private Date addTime;
            private Date updateTime;
            private Boolean deleted;

        }

    }


}
